package LifeForms;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.AffineTransform;

import Game.Sprite;
import Levels.Level1;

public class PowerHunter extends Robot{
	int indexable=0;
	public PowerHunter(Sprite sprite, int ID, int x, int y) {
		super(sprite, ID, x, y);
	}
	void _update() {
	}

	void _paint(Graphics g) {
	}
	void _paint(Graphics2D g2d,int x,int y) {
		AffineTransform tfm = new AffineTransform();
        tfm.rotate(Math.toRadians(this.angle),this.x+(this.getSprite().getWidth()/2),this.y+(this.getSprite().getHeight()/2));
        g2d.setTransform(tfm);
        if(getVerMove()>0){
        	indexable=index.getIndex();
        	indexable-=4;
        }
        if(getVerMove()<0){
        	indexable=index.getIndex();
        }
        this.Draw(g2d,Math.abs(indexable),0,0);
        tfm.rotate(Math.toRadians(-this.angle),this.x+(this.getSprite().getWidth()/2),this.y+(this.getSprite().getHeight()/2));
        g2d.setTransform(tfm);
	}
}
